home *** CD-ROM | disk | FTP | other *** search
- # Australia InterConnect (Australia) PPP login script
- # Copyright 1995 Quarterdeck Corporation
- # 5-10-95 Earl White
-
- STRING username
- STRING password
-
- TRACE OFF
-
- SetTimeout 90 # reset maximum script timeout
-
- # Get username from access method
- CfgGetValue "Username" username
- IF result = 0 THEN
- ABORT "Can't load Username from qdeck.ini"
- ENDIF
-
- # get password from access method
- CfgGetValue "Password" password
- IF result = 0 THEN
- ABORT "Can't load Password from qdeck.ini"
- ENDIF
-
- CommWaitFor "Username:" # wait for username
- CommSend username # send user name
- CommSend "%r" # send carriage return
-
- CommWaitFor "Password:" # wait for password prompt
- CommSend password # send password
- CommSend "%r" # send carriage return
-
- CommWaitFor ">"
-
- # We've hit the terminal server
-
- CommSend "PPP%r"
- CommWaitFor "name: "
-
- # Now we're doing it again !
-
- CommSend username # send user name
- CommSend "%r" # send carriage return
-
- CommWaitFor "Password:" # wait for password prompt
- CommSend password # send password
- CommSend "%r" # send carriage return
-
- END #success if we got this far
-
-